package com.jinsilu.freight.http.server;

import com.hjq.http.config.IRequestServer;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.AppConfig;

/**
 * author : Android 轮子哥
 * github : https://github.com/getActivity/AndroidProject
 * time   : 2019/12/07
 * desc   : 正式环境
 */
public class ReleaseServer implements IRequestServer {

    @Override
//    public String getHost() {
//        return "http://47.104.22.212:8183/";
//    }
    public String getHost() {
        return AppConfig.getBaseUrl();
    }

    @Override
    public String getPath() {
        return "";
    }

    @Override
    public BodyType getType() {
        // 参数以 Json 格式提交（默认是表单）
        return BodyType.JSON;
    }

}